home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / matrixbullettimefighting.swf / scripts / frame_7 / PlaceObject2_217_358 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-05-08  |  34KB  |  1,095 lines

  1. onClipEvent(enterFrame){
  2.    if(this._x < 0)
  3.    {
  4.       this._x = 0;
  5.    }
  6.    else if(800 < this._x)
  7.    {
  8.       this._x = 800;
  9.    }
  10.    if(_root._currentframe != 7)
  11.    {
  12.       this.removeMovieClip();
  13.    }
  14.    if(_root.Start == "on")
  15.    {
  16.       if(0 < BulletS)
  17.       {
  18.          BulletS -= 1;
  19.       }
  20.       if(setalloff == "on")
  21.       {
  22.          GunJumpfor = "off";
  23.          rad = "off";
  24.          JumpKick = "off";
  25.          JumpKickdown = "off";
  26.          StandKick = "off";
  27.          _root["CP" add CPN add "left"] = "off";
  28.          _root["CP" add CPN add "right"] = "off";
  29.          _root["CP" add CPN add "up"] = "off";
  30.          _root["CP" add CPN add "down"] = "off";
  31.          setalloff = "off";
  32.          Duck = "off";
  33.       }
  34.       if(Jumpkick == "on")
  35.       {
  36.          CPPauese = 20;
  37.          if(Jump == "on2")
  38.          {
  39.             _root["CP" add CPN add "up"] = "off";
  40.             if(0 < this._xscale)
  41.             {
  42.                _root["CP" add CPN add "right"] = "off";
  43.                _root["CP" add CPN add "left"] = "on";
  44.             }
  45.             else
  46.             {
  47.                _root["CP" add CPN add "left"] = "off";
  48.                _root["CP" add CPN add "right"] = "on";
  49.             }
  50.          }
  51.          else
  52.          {
  53.             _root["CP" add CPN add "up"] = "on";
  54.             if(0 < this._xscale)
  55.             {
  56.                _root["CP" add CPN add "right"] = "off";
  57.                _root["CP" add CPN add "right"] = "on";
  58.             }
  59.             else
  60.             {
  61.                _root["CP" add CPN add "left"] = "off";
  62.                _root["CP" add CPN add "left"] = "on";
  63.             }
  64.          }
  65.       }
  66.       else if(Standkick == "on")
  67.       {
  68.          CPPauese = 20;
  69.          if(this._currentframe == 1)
  70.          {
  71.             _root["CP" add CPN add "up"] = "on";
  72.          }
  73.          else if(this._currentframe == 25 && this.Man._currentframe < 22)
  74.          {
  75.             if(0 < this._xscale)
  76.             {
  77.                _root["CP" add CPN add "right"] = "on";
  78.             }
  79.             else
  80.             {
  81.                _root["CP" add CPN add "left"] = "on";
  82.             }
  83.          }
  84.          else
  85.          {
  86.             _root["CP" add CPN add "right"] = "off";
  87.             _root["CP" add CPN add "left"] = "off";
  88.             X = 0;
  89.          }
  90.       }
  91.       else if(Duck != "on")
  92.       {
  93.          if(rad == "on")
  94.          {
  95.             CPPauese = 20;
  96.             if(this._currentframe == 1)
  97.             {
  98.                _root["CP" add CPN add "up"] = "on";
  99.             }
  100.             else if(this._currentframe == 25 && this.Man._currentframe < 22)
  101.             {
  102.                if(0 < this._xscale)
  103.                {
  104.                   _root["CP" add CPN add "left"] = "on";
  105.                }
  106.                else
  107.                {
  108.                   _root["CP" add CPN add "right"] = "on";
  109.                }
  110.             }
  111.             else
  112.             {
  113.                _root["CP" add CPN add "right"] = "off";
  114.                _root["CP" add CPN add "left"] = "off";
  115.                X = 0;
  116.             }
  117.          }
  118.          else if(Jumpkickdown == "on")
  119.          {
  120.             CPPauese = 20;
  121.             if(this._currentframe == 12)
  122.             {
  123.                _root["CP" add CPN add "up"] = "on";
  124.             }
  125.             else if(this._currentframe == 35 && this.Man._currentframe < 22)
  126.             {
  127.                _root["CP" add CPN add "up"] = "off";
  128.                _root["CP" add CPN add "left"] = "off";
  129.                _root["CP" add CPN add "right"] = "off";
  130.             }
  131.             else if(this._currentframe == 35)
  132.             {
  133.                if(_root[CPEnemy]._x - 30 < this._x && this._x < _root[CPEnemy]._x + 30)
  134.                {
  135.                   _root["CP" add CPN add "up"] = "off";
  136.                   _root["CP" add CPN add "down"] = "on";
  137.                }
  138.             }
  139.             else if(this._x < _root[CPEnemy]._x)
  140.             {
  141.                _root["CP" add CPN add "right"] = "on";
  142.                _root["CP" add CPN add "left"] = "off";
  143.             }
  144.             else
  145.             {
  146.                _root["CP" add CPN add "right"] = "off";
  147.                _root["CP" add CPN add "left"] = "on";
  148.             }
  149.          }
  150.          else if(GunJumpfor == "on")
  151.          {
  152.             CPPauese = 20;
  153.             if(this._xscale < 0)
  154.             {
  155.                if(_root["CP" add CPN add "left"] == "on")
  156.                {
  157.                   if(Jump == "off")
  158.                   {
  159.                      _root["CP" add CPN add "up"] = "on";
  160.                   }
  161.                   else if(random(10) == 5 && _root[CPEnemy].hit != "on")
  162.                   {
  163.                      BulletS += 90;
  164.                      _root["CP" add CPN add "shoot"] = "on";
  165.                   }
  166.                   else
  167.                   {
  168.                      _root["CP" add CPN add "shoot"] = "off";
  169.                   }
  170.                }
  171.                else
  172.                {
  173.                   _root["CP" add CPN add "right"] = "off";
  174.                   _root["CP" add CPN add "left"] = "on";
  175.                }
  176.             }
  177.             else if(_root["CP" add CPN add "right"] == "on")
  178.             {
  179.                if(Jump == "off")
  180.                {
  181.                   _root["CP" add CPN add "up"] = "on";
  182.                }
  183.                else if(random(10) == 5 && _root[CPEnemy].hit != "on")
  184.                {
  185.                   BulletS += 90;
  186.                   _root["CP" add CPN add "shoot"] = "on";
  187.                }
  188.                else
  189.                {
  190.                   _root["CP" add CPN add "shoot"] = "off";
  191.                }
  192.             }
  193.             else
  194.             {
  195.                _root["CP" add CPN add "left"] = "off";
  196.                _root["CP" add CPN add "right"] = "on";
  197.             }
  198.          }
  199.          else if(Gun == "on")
  200.          {
  201.             CPPauese = 20;
  202.             if(BulletS >= 100)
  203.             {
  204.                Gun = "off";
  205.             }
  206.             _root["CP" add CPN add "right"] = "off";
  207.             _root["CP" add CPN add "left"] = "off";
  208.             _root["CP" add CPN add "up"] = "off";
  209.             _root["CP" add CPN add "down"] = "off";
  210.             X = 0;
  211.             if(random(10) == 5 && _root[CPEnemy].hit != "on")
  212.             {
  213.                BulletS += 90;
  214.                _root["CP" add CPN add "shoot"] = "on";
  215.             }
  216.             else
  217.             {
  218.                _root["CP" add CPN add "shoot"] = "off";
  219.             }
  220.             if(Y == 0)
  221.             {
  222.                if(0 >= _root["P" add nameN add "Bullets"])
  223.                {
  224.                   Gun = "off";
  225.                }
  226.             }
  227.             if(_root[CPEnemy]._x < this._x)
  228.             {
  229.                if(_root[CPEnemy]._x + 150 < this._x)
  230.                {
  231.                   if(this._y >= _root[CPEnemy]._y)
  232.                   {
  233.                      this._xscale = -100;
  234.                      GunJumpfor = "on";
  235.                   }
  236.                }
  237.                else if(_root[CPEnemy]._x + 150 < this._x)
  238.                {
  239.                   this._xscale = -100;
  240.                }
  241.                else
  242.                {
  243.                   Gun = "off";
  244.                }
  245.             }
  246.             else if(this._x < _root[CPEnemy]._x)
  247.             {
  248.                if(this._x < _root[CPEnemy]._x - 150)
  249.                {
  250.                   this._xscale = 100;
  251.                   if(this._y >= _root[CPEnemy]._y)
  252.                   {
  253.                      GunJumpfor = "on";
  254.                   }
  255.                   if(this._x < _root[CPEnemy]._x - 150)
  256.                   {
  257.                      if(_root[CPEnemy]._y >= this._y)
  258.                      {
  259.                         this._xscale = 100;
  260.                         GunJumpfor = "on";
  261.                      }
  262.                   }
  263.                   else if(this._x < _root[CPEnemy]._x + 150)
  264.                   {
  265.                      this._xscale = -100;
  266.                   }
  267.                   else
  268.                   {
  269.                      Gun = "off";
  270.                   }
  271.                }
  272.             }
  273.          }
  274.          else if(this._currentframe == 1 && this.Man._currentframe >= 60)
  275.          {
  276.             _root["CP" add CPN add "right"] = "off";
  277.             _root["CP" add CPN add "left"] = "off";
  278.             _root["CP" add CPN add "up"] = "off";
  279.             _root["CP" add CPN add "down"] = "off";
  280.          }
  281.          else if(0 < CPPauese)
  282.          {
  283.             CPPauese -= 1;
  284.          }
  285.          else
  286.          {
  287.             if(_root[CPEnemy].hitTest(_root.B1))
  288.             {
  289.                if(this.H.hitTest(_root.B1))
  290.                {
  291.                   Bxaction = "normal";
  292.                }
  293.                else
  294.                {
  295.                   Bxaction = "goup";
  296.                }
  297.             }
  298.             else
  299.             {
  300.                Bxaction = "normal";
  301.             }
  302.             if(Bxaction == "goup")
  303.             {
  304.                if(_root.B1._x < this._x)
  305.                {
  306.                   _root["CP" add CPN add "left"] = "on";
  307.                   if(Jump == "off")
  308.                   {
  309.                      if(this._x < _root.B1._x + 100)
  310.                      {
  311.                         _root["CP" add CPN add "up"] = "on";
  312.                      }
  313.                   }
  314.                   else
  315.                   {
  316.                      _root["CP" add CPN add "up"] = "off";
  317.                   }
  318.                }
  319.             }
  320.             if(Bxaction == "normal")
  321.             {
  322.                var forvar = 1;
  323.                while(5 >= forvar)
  324.                {
  325.                   if(this.Bsens.hitTest(_root["P1Bullet" add forvar]))
  326.                   {
  327.                      _root["CP" add CPN add "left"] = "off";
  328.                      _root["CP" add CPN add "right"] = "off";
  329.                      _root["CP" add CPN add "up"] = "off";
  330.                      _root["CP" add CPN add "down"] = "off";
  331.                      X = 0;
  332.                      Y = 0;
  333.                      Duck = "on";
  334.                   }
  335.                   forvar++;
  336.                }
  337.                if(this._y == _root[CPEnemy]._y)
  338.                {
  339.                   if(_root[CPEnemy]._x < this._x)
  340.                   {
  341.                      if(_root[CPEnemy]._x + 300 < this._x)
  342.                      {
  343.                         _root["CP" add CPN add "right"] = "off";
  344.                         _root["CP" add CPN add "left"] = "on";
  345.                         this._xscale = -100;
  346.                      }
  347.                      else if(_root[CPEnemy]._x + 200 < this._x)
  348.                      {
  349.                         this._xscale = -100;
  350.                         if(0 < _root["P" add nameN add "Bullets"] && 0 >= BulletS)
  351.                         {
  352.                            _root["CP" add CPN add "Gun"] = "on";
  353.                         }
  354.                         else
  355.                         {
  356.                            _root["CP" add CPN add "right"] = "off";
  357.                            _root["CP" add CPN add "left"] = "on";
  358.                         }
  359.                      }
  360.                      else if(_root[CPEnemy]._x + 90 < this._x)
  361.                      {
  362.                         if(random(2) == 1)
  363.                         {
  364.                            JumpKickdown = "on";
  365.                         }
  366.                         else if(random(2) == 1)
  367.                         {
  368.                            _root["CP" add CPN add "left"] = "on";
  369.                            JumpKick = "on";
  370.                         }
  371.                         else
  372.                         {
  373.                            _root["CP" add CPN add "right"] = "off";
  374.                            _root["CP" add CPN add "left"] = "on";
  375.                         }
  376.                      }
  377.                      else if(_root[CPEnemy]._x + 50 < this._x)
  378.                      {
  379.                         if(random(2) == 1)
  380.                         {
  381.                            _root["CP" add CPN add "left"] = "on";
  382.                            JumpKick = "on";
  383.                         }
  384.                         else
  385.                         {
  386.                            _root["CP" add CPN add "right"] = "off";
  387.                            _root["CP" add CPN add "left"] = "on";
  388.                         }
  389.                      }
  390.                      else if(_root[CPEnemy]._x + 20 < this._x)
  391.                      {
  392.                         _root["CP" add CPN add "right"] = "off";
  393.                         _root["CP" add CPN add "left"] = "on";
  394.                      }
  395.                      else if(_root[CPEnemy]._x + 10 < this._x)
  396.                      {
  397.                         this._xscale = -100;
  398.                         Standkick = "on";
  399.                      }
  400.                      else if(_root[CPEnemy]._x < this._x)
  401.                      {
  402.                         this._xscale = -100;
  403.                         _root["CP" add CPN add "left"] = "on";
  404.                         _root["CP" add CPN add "right"] = "off";
  405.                         X = 0;
  406.                         if(this._currentframe == 1 && this.Man._currentframe == 1)
  407.                         {
  408.                            _root["CP" add CPN add "down"] = "on";
  409.                         }
  410.                      }
  411.                   }
  412.                   else if(this._x < _root[CPEnemy]._x)
  413.                   {
  414.                      if(this._x < _root[CPEnemy]._x - 300)
  415.                      {
  416.                         this._xscale = 100;
  417.                         _root["CP" add CPN add "left"] = "off";
  418.                         _root["CP" add CPN add "right"] = "on";
  419.                      }
  420.                      else if(this._x < _root[CPEnemy]._x - 200)
  421.                      {
  422.                         this._xscale = 100;
  423.                         if(0 < _root["P" add nameN add "Bullets"] && 0 >= BulletS)
  424.                         {
  425.                            _root["CP" add CPN add "Gun"] = "on";
  426.                         }
  427.                         else
  428.                         {
  429.                            _root["CP" add CPN add "left"] = "off";
  430.                            _root["CP" add CPN add "right"] = "on";
  431.                         }
  432.                      }
  433.                      else if(this._x < _root[CPEnemy]._x - 90)
  434.                      {
  435.                         if(random(2) == 1)
  436.                         {
  437.                            JumpKickdown = "on";
  438.                         }
  439.                         else if(random(2) == 1)
  440.                         {
  441.                            _root["CP" add CPN add "right"] = "on";
  442.                            JumpKick = "on";
  443.                         }
  444.                         else
  445.                         {
  446.                            _root["CP" add CPN add "left"] = "off";
  447.                            _root["CP" add CPN add "right"] = "on";
  448.                         }
  449.                      }
  450.                      else if(this._x < _root[CPEnemy]._x - 50)
  451.                      {
  452.                         if(random(2) == 1)
  453.                         {
  454.                            _root["CP" add CPN add "left"] = "on";
  455.                            JumpKick = "on";
  456.                         }
  457.                         else
  458.                         {
  459.                            _root["CP" add CPN add "left"] = "off";
  460.                            _root["CP" add CPN add "right"] = "on";
  461.                         }
  462.                      }
  463.                      else if(this._x < _root[CPEnemy]._x - 20)
  464.                      {
  465.                         _root["CP" add CPN add "left"] = "off";
  466.                         _root["CP" add CPN add "right"] = "on";
  467.                      }
  468.                      else if(this._x < _root[CPEnemy]._x - 10)
  469.                      {
  470.                         this._xscale = 100;
  471.                         Standkick = "on";
  472.                      }
  473.                      else if(this._x < _root[CPEnemy]._x)
  474.                      {
  475.                         this._xscale = 100;
  476.                         _root["CP" add CPN add "right"] = "off";
  477.                         _root["CP" add CPN add "left"] = "off";
  478.                         X = 0;
  479.                         if(this._currentframe == 1 && this.Man._currentframe == 1)
  480.                         {
  481.                            _root["CP" add CPN add "down"] = "on";
  482.                         }
  483.                      }
  484.                   }
  485.                }
  486.                else if(_root[CPEnemy]._y < this._y)
  487.                {
  488.                   if(this._y < _root[CPEnemy]._y + 200)
  489.                   {
  490.                      if(_root[CPEnemy]._x < this._x)
  491.                      {
  492.                         if(this._x < _root[CPEnemy]._x + 100)
  493.                         {
  494.                            if(_root[CPEnemy].Jump != "off")
  495.                            {
  496.                               rad = "on";
  497.                            }
  498.                         }
  499.                      }
  500.                   }
  501.                }
  502.                else if(this._y < _root[CPEnemy]._y)
  503.                {
  504.                   if(_root[CPEnemy]._x < this._x)
  505.                   {
  506.                      if(this._x < _root[CPEnemy]._x + 500)
  507.                      {
  508.                         if(_root[CPEnemy].Jump == "off")
  509.                         {
  510.                            _root["CP" add CPN add "right"] = "off";
  511.                            _root["CP" add CPN add "left"] = "on";
  512.                         }
  513.                         else
  514.                         {
  515.                            _root["CP" add CPN add "right"] = "off";
  516.                            _root["CP" add CPN add "left"] = "off";
  517.                         }
  518.                      }
  519.                   }
  520.                   else if(this._x < _root[CPEnemy]._x)
  521.                   {
  522.                      if(_root[CPEnemy]._x - 500 < this._x)
  523.                      {
  524.                         if(_root[CPEnemy].Jump == "off")
  525.                         {
  526.                            _root["CP" add CPN add "left"] = "off";
  527.                            _root["CP" add CPN add "right"] = "on";
  528.                         }
  529.                         else
  530.                         {
  531.                            _root["CP" add CPN add "left"] = "off";
  532.                            _root["CP" add CPN add "right"] = "off";
  533.                         }
  534.                      }
  535.                   }
  536.                }
  537.             }
  538.          }
  539.       }
  540.       if(this._x < _root[CPEnemy]._x + 30 && _root[CPEnemy]._x - 30 < this._x)
  541.       {
  542.       }
  543.       if(_root["CP" add CPN add "Gun"] == "on")
  544.       {
  545.          if(Gun == "on")
  546.          {
  547.             if(this._currentframe == 6 && this.Man._currentframe == 1)
  548.             {
  549.                tellTarget(this.Man)
  550.                {
  551.                   gotoAndStop("GunB");
  552.                   play();
  553.                }
  554.             }
  555.          }
  556.          else if(this._currentframe == 1 && this.Man._currentframe == 1)
  557.          {
  558.             tellTarget(this.Man)
  559.             {
  560.                gotoAndStop("GunF");
  561.                play();
  562.             }
  563.             _root["CP" add CPN add "Gun"] = "off";
  564.          }
  565.          if(Shiftdown == "off")
  566.          {
  567.          }
  568.          Shiftdown = "on";
  569.       }
  570.       else
  571.       {
  572.          Shiftdown = "off";
  573.       }
  574.       if(0 < _root.P2Bullets)
  575.       {
  576.          if(_root["CP" add CPN add "shoot"] == "on")
  577.          {
  578.             if(ShotDown == "off")
  579.             {
  580.                if(Gun == "on")
  581.                {
  582.                   if(this.Man.Garm._currentframe < 9)
  583.                   {
  584.                      tellTarget(this.Man.Garm)
  585.                      {
  586.                         gotoAndStop("shoot");
  587.                         play();
  588.                      }
  589.                   }
  590.                }
  591.             }
  592.          }
  593.          else
  594.          {
  595.             ShotDown = "off";
  596.          }
  597.       }
  598.       if(hit != "off")
  599.       {
  600.          Yminus = 0.15;
  601.       }
  602.       else if(Gun == "on" && this._currentframe == 30)
  603.       {
  604.          Yminus = 0.2;
  605.       }
  606.       else
  607.       {
  608.          Yminus = 0.3;
  609.       }
  610.       if(hit == "off" || duck == "off")
  611.       {
  612.          if(_root["CP" add CPN add "down"] == "on")
  613.          {
  614.             if(Kick == "off")
  615.             {
  616.                if(Jump == "off")
  617.                {
  618.                   if(Kickdown == "off")
  619.                   {
  620.                      if(this._currentframe == 1)
  621.                      {
  622.                         tellTarget(this.Man)
  623.                         {
  624.                            gotoAndPlay(4);
  625.                         }
  626.                         _root["CP" add CPN add "down"] = "off";
  627.                         Kick = "on1";
  628.                         Kickdown = "on";
  629.                      }
  630.                   }
  631.                }
  632.             }
  633.          }
  634.          else
  635.          {
  636.             Kickdown = "off";
  637.          }
  638.       }
  639.       if(Land == "off" && hit == "off" && Duck == "off")
  640.       {
  641.          if(this._currentframe == 1 && this.Man._currentframe < 5 || 1 < this._currentframe)
  642.          {
  643.             if(Jump == "off")
  644.             {
  645.                if(_root["CP" add CPN add "up"] == "on" && Jump == "off")
  646.                {
  647.                   if(X == 0)
  648.                   {
  649.                      Jump = "ons";
  650.                   }
  651.                   else
  652.                   {
  653.                      Jump = "onr";
  654.                   }
  655.                }
  656.                if(_root["CP" add CPN add "left"] == "on")
  657.                {
  658.                   X = - Speed;
  659.                   this._xscale = -100;
  660.                }
  661.                else if(_root["CP" add CPN add "right"] == "on")
  662.                {
  663.                   X = Speed;
  664.                   this._xscale = 100;
  665.                }
  666.                else
  667.                {
  668.                   X = 0;
  669.                }
  670.             }
  671.             else if(_root["CP" add CPN add "left"] == "on")
  672.             {
  673.                if(- Speedlimit < X)
  674.                {
  675.                   if(_root.Slow == "on")
  676.                   {
  677.                      X -= 0.025;
  678.                   }
  679.                   else if(_root.Slow == "on2")
  680.                   {
  681.                      X -= 0.05;
  682.                   }
  683.                   else
  684.                   {
  685.                      X -= 0.1;
  686.                   }
  687.                }
  688.             }
  689.             else if(_root["CP" add CPN add "right"] == "on")
  690.             {
  691.                if(X < Speedlimit)
  692.                {
  693.                   if(_root.Slow == "on")
  694.                   {
  695.                      X += 0.025;
  696.                   }
  697.                   else if(_root.Slow == "on2")
  698.                   {
  699.                      X += 0.05;
  700.                   }
  701.                   else
  702.                   {
  703.                      X += 0.1;
  704.                   }
  705.                }
  706.             }
  707.          }
  708.       }
  709.       else if(hit != "off")
  710.       {
  711.          if(0 < X)
  712.          {
  713.             this._xscale = -100;
  714.          }
  715.          else if(X < 0)
  716.          {
  717.             this._xscale = 100;
  718.          }
  719.       }
  720.       if(Jump == "on")
  721.       {
  722.       }
  723.       if(Y < - Jumplimit)
  724.       {
  725.          Y = - Jumplimit;
  726.       }
  727.       if(_root.Slow == "on")
  728.       {
  729.          Y -= Yminus / 2;
  730.          this._y -= Y / 2;
  731.       }
  732.       else if(_root.Slow == "on2")
  733.       {
  734.          Y -= Yminus;
  735.          this._y -= Y;
  736.       }
  737.       else
  738.       {
  739.          Y -= Yminus * 2;
  740.          this._y -= Y * 2;
  741.       }
  742.       var forvar = 1;
  743.       while(forvar < 10)
  744.       {
  745.          if(this.H.hitTest(_root.Level["G" add forvar]))
  746.          {
  747.             if(_root.Level["G" add forvar]._y + _root.Level["G" add forvar]._height < this._y && 0 < Y && this._x < _root.Level["G" add forvar]._x - this._x < _root.Level["G" add forvar]._xscale || _root.Level["G" add forvar]._y + _root.Level["G" add forvar]._height < this._y && 0 < Y && _root.Level["G" add forvar]._x + this._x < this._x < _root.Level["G" add forvar]._xscale)
  748.             {
  749.                this._y = _root.Level["G" add forvar]._y + _root.Level["G" add forvar]._height + this.H._height + 10;
  750.                Y = 0;
  751.             }
  752.             else if(this._x < _root.Level["G" add forvar]._x)
  753.             {
  754.                if(_root.Jump != "on4")
  755.                {
  756.                   this._x = _root.Level["G" add forvar]._x - _root.Level["G" add forvar]._width / 2 - 15;
  757.                }
  758.                if(hit != "off")
  759.                {
  760.                   if(X >= 0)
  761.                   {
  762.                      this._xscale = 100;
  763.                      X *= -1;
  764.                   }
  765.                }
  766.                else if(_root["CP" add CPN add "up"] == "on" && Gun != "on")
  767.                {
  768.                   if(Jump != "off")
  769.                   {
  770.                      if(X >= 0)
  771.                      {
  772.                         if(2 < Y)
  773.                         {
  774.                            this._xscale = 100;
  775.                            Jump = "onw3";
  776.                            Y = 0;
  777.                            X = 0;
  778.                         }
  779.                         else if(Jump != "on3")
  780.                         {
  781.                            this._xscale = 100;
  782.                            Jump = "onw2";
  783.                            Y = 0;
  784.                            X = 0;
  785.                         }
  786.                      }
  787.                   }
  788.                }
  789.             }
  790.             else if(_root.Level["G" add forvar]._x < this._x)
  791.             {
  792.                this._x = _root.Level["G" add forvar]._x + _root.Level["G" add forvar]._width / 2 + 15;
  793.                if(hit != "off")
  794.                {
  795.                   if(0 >= X)
  796.                   {
  797.                      this._xscale = -100;
  798.                      X *= -1;
  799.                   }
  800.                }
  801.                else if(_root["CP" add CPN add "up"] == "on" && Gun != "on")
  802.                {
  803.                   if(Jump != "off")
  804.                   {
  805.                      if(0 >= X)
  806.                      {
  807.                         if(2 < Y)
  808.                         {
  809.                            this._xscale = -100;
  810.                            Jump = "onw4";
  811.                            Y = 0;
  812.                            X = 0;
  813.                         }
  814.                         else if(Jump != "on3")
  815.                         {
  816.                            this._xscale = -100;
  817.                            Jump = "onw";
  818.                            Y = 0;
  819.                            X = 0;
  820.                         }
  821.                      }
  822.                   }
  823.                }
  824.             }
  825.          }
  826.          if(this.feet.hitTest(_root.Level["G" add forvar]))
  827.          {
  828.             if(_root.Level["G" add forvar]._y + 30 >= this._y && 0 >= Y)
  829.             {
  830.                this._y = _root.Level["G" add forvar]._y;
  831.                if(hit == "off")
  832.                {
  833.                   if(this._currentframe == 53 || this._currentframe == 58)
  834.                   {
  835.                      Land = "on";
  836.                   }
  837.                   else if(Kick == "onJ" && Jump == "on2")
  838.                   {
  839.                      Land = "on2";
  840.                   }
  841.                   if(Jump == "on2" || Jump == "on")
  842.                   {
  843.                      if(this._currentframe == 35)
  844.                      {
  845.                         if(65 < this.Man._currentframe && this.Man._currentframe < 98)
  846.                         {
  847.                            Jump = "off";
  848.                            _root["CP" add eval("../:CPN") add "up"] = "off";
  849.                            tellTarget(this)
  850.                            {
  851.                               gotoAndStop(1);
  852.                            }
  853.                            X = 0;
  854.                         }
  855.                      }
  856.                      if(Gun == "on" && this._currentframe == 30)
  857.                      {
  858.                         if(0 < this._xscale)
  859.                         {
  860.                            X = 2;
  861.                         }
  862.                         else
  863.                         {
  864.                            X = -2;
  865.                         }
  866.                         Land = "Gon";
  867.                      }
  868.                      Jump = "off";
  869.                   }
  870.                   stand = "on";
  871.                   Y = 0;
  872.                }
  873.                else
  874.                {
  875.                   X /= 2;
  876.                   Y *= -0.5;
  877.                   if(Y < 2 && X < 2 && -2 < X)
  878.                   {
  879.                      X = 0;
  880.                      Y = 0;
  881.                      if(this.Man._currentframe < 36)
  882.                      {
  883.                         tellTarget(this.Man)
  884.                         {
  885.                            gotoAndPlay(36);
  886.                         }
  887.                      }
  888.                   }
  889.                   else
  890.                   {
  891.                      hit = "on";
  892.                      if(this.Man._currentframe < 36)
  893.                      {
  894.                         if(this.Man._currentframe < 19)
  895.                         {
  896.                            tellTarget(this.Man)
  897.                            {
  898.                               gotoAndStop("G");
  899.                               play();
  900.                            }
  901.                         }
  902.                         else
  903.                         {
  904.                            tellTarget(this.Man)
  905.                            {
  906.                               gotoAndPlay(19);
  907.                            }
  908.                         }
  909.                      }
  910.                   }
  911.                }
  912.             }
  913.          }
  914.          forvar++;
  915.       }
  916.       if(_root.Slow == "on")
  917.       {
  918.          this._x += X / 2;
  919.       }
  920.       else if(_root.Slow == "on2")
  921.       {
  922.          this._x += X;
  923.       }
  924.       else
  925.       {
  926.          this._x += X * 2;
  927.       }
  928.       if(hit == "on")
  929.       {
  930.          tellTarget(this)
  931.          {
  932.             gotoAndStop("hit");
  933.          }
  934.       }
  935.       else if(hit == "on2")
  936.       {
  937.          tellTarget(this)
  938.          {
  939.             gotoAndStop("hit2");
  940.          }
  941.       }
  942.       else if(Duck == "on")
  943.       {
  944.          tellTarget(this)
  945.          {
  946.             gotoAndStop("Duck");
  947.          }
  948.       }
  949.       else if(Land == "on")
  950.       {
  951.          tellTarget(this)
  952.          {
  953.             gotoAndStop("Land");
  954.          }
  955.       }
  956.       else if(Land == "on2")
  957.       {
  958.          tellTarget(this)
  959.          {
  960.             gotoAndStop("Land2");
  961.          }
  962.       }
  963.       else if(Land == "Gon")
  964.       {
  965.          tellTarget(this)
  966.          {
  967.             gotoAndStop("GLand");
  968.          }
  969.       }
  970.       else if(Jump != "off")
  971.       {
  972.          if(Jump == "ons")
  973.          {
  974.             if(Gun == "on")
  975.             {
  976.                tellTarget(this)
  977.                {
  978.                   gotoAndStop("GJump");
  979.                }
  980.             }
  981.             else
  982.             {
  983.                tellTarget(this)
  984.                {
  985.                   gotoAndStop("Jump");
  986.                }
  987.             }
  988.             Jump = "on3";
  989.          }
  990.          else if(Jump == "onr")
  991.          {
  992.             if(Gun == "on")
  993.             {
  994.                tellTarget(this)
  995.                {
  996.                   gotoAndStop("GJump2");
  997.                }
  998.             }
  999.             else
  1000.             {
  1001.                tellTarget(this)
  1002.                {
  1003.                   gotoAndStop("Jump2");
  1004.                }
  1005.             }
  1006.             Jump = "on3";
  1007.          }
  1008.          else if(Jump == "onw")
  1009.          {
  1010.             tellTarget(this)
  1011.             {
  1012.                gotoAndStop("Jump3");
  1013.             }
  1014.             Jump = "on3";
  1015.          }
  1016.          else if(Jump == "onw2")
  1017.          {
  1018.             tellTarget(this)
  1019.             {
  1020.                gotoAndStop("Jump4");
  1021.             }
  1022.             Jump = "on3";
  1023.          }
  1024.          else if(Jump == "onw3")
  1025.          {
  1026.             tellTarget(this)
  1027.             {
  1028.                gotoAndStop("Jump5");
  1029.             }
  1030.             Jump = "on3";
  1031.          }
  1032.          else if(Jump == "onw4")
  1033.          {
  1034.             tellTarget(this)
  1035.             {
  1036.                gotoAndStop("Jump6");
  1037.             }
  1038.             Jump = "on3";
  1039.          }
  1040.          if(Kick == "on2")
  1041.          {
  1042.             tellTarget(this.Man)
  1043.             {
  1044.                gotoAndStop("Kick");
  1045.                play();
  1046.             }
  1047.             Kick = "on";
  1048.          }
  1049.          if(Kick == "on3")
  1050.          {
  1051.             tellTarget(this.Man)
  1052.             {
  1053.                gotoAndStop("Kick2");
  1054.                play();
  1055.             }
  1056.             Kick = "on";
  1057.          }
  1058.       }
  1059.       else if(X == 0)
  1060.       {
  1061.          if(Gun == "on")
  1062.          {
  1063.             tellTarget(this)
  1064.             {
  1065.                gotoAndStop("Gstand");
  1066.             }
  1067.          }
  1068.          else
  1069.          {
  1070.             tellTarget(this)
  1071.             {
  1072.                gotoAndStop("stand");
  1073.             }
  1074.          }
  1075.       }
  1076.       else if(Gun == "on")
  1077.       {
  1078.          tellTarget(this)
  1079.          {
  1080.             gotoAndStop("Grun");
  1081.          }
  1082.       }
  1083.       else
  1084.       {
  1085.          tellTarget(this)
  1086.          {
  1087.             gotoAndStop("run");
  1088.          }
  1089.       }
  1090.       if(_root.Slow == "on")
  1091.       {
  1092.       }
  1093.    }
  1094. }
  1095.